<template>
  <div class="onsite">
    <div class="site-top">

    </div>
    <div class="site-list">
      <ul>
        <li @click="toSite">点击去巡检</li>
      </ul>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import { useRouter } from 'vue-router'
export default defineComponent({
  setup() {
    const router = useRouter()
    const toSite = () => {
      router.push('siteMap')
    }

    return {
      toSite,
    }
  },
})
</script>

<style lang="less" scoped>
.onsite {
  position: relative;
  display: flex;
  flex-direction: column;
  .site-top {
    background-color: rgba(0, 125, 227, 1);
    width: 100%;
    height: 200px;
  }
  .site-list {
    position: absolute;
    top: 150px;
    width: 100%;
    padding: 0 20px;
    height: calc(100% - 150px);
    ul {
      li {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 132px;
        border-radius: 5;
        background-color: white;
      }
    }
  }
}
</style>